import http from './index';


/** 首页
 * 获取首页列表
 */
function getArticleList(params){
  return new Promise((resolve, reject) => {
    http("get",'/articles/get',params).then(res => {
      resolve (res);
    },error => {
      reject(error)
    })
  }) 
}

/**文章详细页
 * 获取继续阅读列表
 */
function getKeepList(params){
  return new Promise((resolve, reject) => {
    http("get",'/articles/getKeepList',params).then(res => {
      resolve (res);
    },error => {
      reject(error)
    })
  }) 
}

/**文章详细页
 * 获取评论列表
 */
function getCommentList(params){
  return new Promise((resolve, reject) => {
    http("get",'/comments/getComment',params).then(res => {
      resolve (res);
    },error => {
      reject(error)
    })
  }) 
}

export {
   getArticleList,getKeepList,getCommentList
}
